Skip to content

ReactiveViewHostUnsafe class

Attributes: [RequiresUnreferencedCode("Auto-wireup finds the host's properties and the app's Android resource ids by reflection, which the trimmer cannot see. Use LayoutViewHost or ReactiveViewHost and wire controls in the bind callback to stay trim and ahead-of-time safe.")] [RequiresDynamicCode("Auto-wireup finds the host's properties and the app's Android resource ids by reflection, which the trimmer cannot see. Use LayoutViewHost or ReactiveViewHost and wire controls in the bind callback to stay trim and ahead-of-time safe.")] [DebuggerDisplay("{ViewModel}")]

Defined in

Namespace: ReactiveUI Assembly: ReactiveUI.dll Full name: ReactiveUI.ReactiveViewHostUnsafe<T> Modifiers: public

Summary

View source

A ReactiveViewHost that can wire its child controls to its properties by reflection.

Applies to

net10.0-android36.0

Class hierarchy
classDiagram
class ReactiveViewHostUnsafe~T~
class ReactiveViewHost~TViewModel~
ReactiveViewHost~TViewModel~ <|-- ReactiveViewHostUnsafe~T~

Inherits from: ReactiveViewHost

Remarks

Auto-wireup finds each property of the derived host by reflection and looks up the matching control id in the app's generated Android resource type. This type also fills AllPublicProperties for older code that reads it. The trimmer cannot see these lookups, so this type is not safe to trim or to compile ahead of time.

Use ReactiveViewHost and wire the controls in its bind callback when you can.

Constructors

NameSummary
.ctorInitializes a new instance of the [ReactiveViewHostUnsafe](# class by inflating a layout resource and optionally wiring child controls to properties by...
Inherited members